function submitbylogin() {
    var username = $('#username').val();
    var password = $('#password').val();

    $.ajax({
        type: "post",
        url: "/api/login",
        data: {username,password},
        success: function (response) {
            console.log(response);
        }
    });
}